﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.TextManager.Interop;

namespace BlunderBrain.VisualStudio.AviSynth
{
    public class AviSynthSource : Source
    {

        public AviSynthScriptEnvironment ScriptEnvironment { get; private set; }

        
        public AviSynthSource(LanguageService service, IVsTextLines textLines, Colorizer colorizer, AviSynthScriptEnvironment scriptEnvironment)
            : base(service, textLines, colorizer)
        {
            ScriptEnvironment = scriptEnvironment;
        }

        public override void MethodTip(IVsTextView textView, int line, int index, TokenInfo info)
        {
            base.MethodTip(textView, line, index, info);
        }

        public override void Dispose()
        {
            ScriptEnvironment.Dispose();
            base.Dispose();
        }
    }
}
